//**********************************************************
//    File Name: TimeSheet.cs
//    Author: Team Motif
//    Date Created : 04/13/2007
//    Current Owner: Team Motif 
//                                                                            
//    Purpose: 
//    This class provides the functions needed to create, update, access, and delete a 
//    homecare worker's timesheets.
//
//	  Copyright 2007
//**********************************************************

using System;
using System.Collections;
using System.Text;

namespace Library
{
    public class TimeSheet
    {
        /// <summary>
        /// -------------------------------------------------------------------------------
        /// Constructor for Timesheet.  Accepts a list of Appointment classes
        /// -------------------------------------------------------------------------------
        /// </summary>
        /// <param name="appointments"></param>
        public TimeSheet(ArrayList appointments)
        {
            mAppointments = appointments;
        }

        /// <summary>
        /// -------------------------------------------------------------------------------
        /// Write a timesheet entity out to the Database
        /// -------------------------------------------------------------------------------
        /// </summary>
        /// <param name="timeSheet"></param>
        public static void SaveTimeSheet(TimeSheet timeSheet)
        {

        }

        /// <summary>
        /// -------------------------------------------------------------------------------
        /// Calculates the hours
        /// -------------------------------------------------------------------------------
        /// </summary>
        /// <param name="week"></param>
        /// <returns></returns>
        public float CalculateHours(DateTime week)
        {
            // return dummy data
            return 40.0F;
        }

        /// <summary>
        /// -------------------------------------------------------------------------------
        /// Approve weekly time
        /// -------------------------------------------------------------------------------
        /// </summary>
        /// <param name="week"></param>
        public void ApproveTime(DateTime week)
        {

        }

        /// <summary>
        /// -------------------------------------------------------------------------------
        /// Disapprove weekly time
        /// -------------------------------------------------------------------------------
        /// </summary>
        /// <param name="week"></param>
        public void DisApproveTime(DateTime week)
        {

        }

        /// <summary>
        /// -------------------------------------------------------------------------------
        /// Save time sheet to Database
        /// -------------------------------------------------------------------------------
        /// </summary>
        /// <param name="week"></param>
        public void SaveTimeSheetData(DateTime week)
        {

        }

        /// <summary>
        /// -------------------------------------------------------------------------------
        /// Returns the date for which the timesheet was submitted
        /// -------------------------------------------------------------------------------
        /// </summary>
        public void GetTimeSheetDate(DateTime week)
        {

        }

        // -------------------------------------------------------------------------------
        // Private data region
        // -------------------------------------------------------------------------------
        ArrayList mAppointments;
    }
}
